package com.xiyue.leaspring.service;

import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringJUnit4ClassRunner;

@ContextConfiguration(locations = {"classpath:spring/spring-base2.xml"})//资源定位
@RunWith(SpringJUnit4ClassRunner.class)//需要使用的测试工具
public class IMessageServiceTest2 {

	@Autowired
	private IMessageService messageService;
	
	@Test
	public void testSend() {
		this.messageService.send("www.xiyue.com");//发送消息
	}

}
